<include file="public/header_m"/>
<div class="am-cf admin-main">
    <include file="public/sidebar_m"/>
    <!-- content start -->
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">面料</strong>
            </div>
        </div>
        <div class="am-tabs am-margin" data-am-tabs>
            <div class="am-tabs-bd">
                <div class="am-tab-panel am-fade" id="tab2">
                    <form class="am-form" enctype="multipart/form-data" name="form2" id="form2" action="__URL__/colorAdd2" method="post" onsubmit="return checkForm2()">
                        <div class="am-g am-margin-top">
                            <div class="am-u-sm-2 am-text-right">
                                面料
                            </div>
                            <div class="am-u-sm-4 col-end">
                                <input type="text" class="am-input-sm" id="color" name="color">
                            </div>
                        </div>
                        <div class="am-margin-top">
                            <div class="am-u-sm-2 am-text-right">
                                图片
                            </div>
                            <div class="am-u-sm-4">
                                <input type="file" class="am-input-sm" id="pic" name="pic"/>
                                <p class="am-form-help">请选择要上传的图片...</p>
                            </div>
                        </div>
                        <div class="am-g am-margin">
                            <input type="submit" name="" value="添加" class="am-btn am-btn-primary am-btn-sm am-fl">
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
    <!-- content end -->

</div>
<script>
    function checkForm2() {
        var addform2 = document.form2;
        if (addform2.color.value == "") {
            alert("请填写面料!");
            addform2.color.focus();   //用户名输入框获得焦点
            return false;   //不提交表单
        }
        return true;
    }
</script>
<include file="public/footer_m"/>
